package com.example.demo.service;

import com.example.demo.entity.User;
import org.springframework.security.core.userdetails.UserDetailsService;

import java.util.List;

public interface UserService extends UserDetailsService {
    User findByUsername(String username);
    boolean register(User user);
    boolean update(User user);
    User findById(Long id);
    List<User> findAll();
    boolean delete(Long id);
    boolean updateStatus(Long id, Integer status);
}